package com.test.qpbgboot.backend.pojo.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

@Data
public class MerchantSaveParam {
    @ApiModelProperty(value = "商家id")
    private Long id;
    @ApiModelProperty(value = "商家名称",required = true)
    @NotBlank(message = "商家名称不能为空")
    private String name;
    @ApiModelProperty(value = "负责人名字",required = true)
    @NotBlank(message = "负责人名字不能为空")
    private String headName;
    @ApiModelProperty(value = "邮箱")
    @Email
    private String email;
    @ApiModelProperty(value = "联系号码")
    @Pattern(regexp = "^\\d{7}$|^\\d{8}$|^\\d{11}$", message = "电话号码格式有误")
    private String phone;
    @ApiModelProperty(value = "商家logo")
    private String imgUrl;
    @ApiModelProperty(value = "商家简介")
    private String description;
    @ApiModelProperty(value = "营业执照")
    private String businessLicense;
    @ApiModelProperty(value = "商家状态 0待审核 1启用 2停用 3审核失败")
    private String status;
    @ApiModelProperty(value = "备注")
    private String remark;
}
